
<!DOCTYPE html>
<html lang="en">

    <head>
        <title>Nursing Healthcare Information System</title><meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="stylesheet" href="css/bootstrap.min.css" />
        <link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="css/maruti-login.css" />
    </head>
    <body>
        <div id="logo">
            <img src="img/login-logo.png" alt="" />
        </div>
        <div id="loginbox">            
            <form id="loginform" method="POST" class="form-vertical" action="login.php">
                <div class="control-group normal_text"><h3>Nursing Healthcare Information Systemsoner</h3></div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on"><i class="icon-user"></i></span><input type="text" name="user_name" placeholder="Kullanıcı Adı" />
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on"><i class="icon-lock"></i></span><input type="password" name="user_password" placeholder="Şifre" />
                        </div> 
                    </div>   
                </div>
                <div class="form-actions">
                    <span class="pull-left"><a href="#" class="flip-link btn btn-warning" id="to-recover">Şifremi Unuttum?</a></span>
                    <?php
                    if (isset($_POST["user_name"])) {
                        if ((strcmp($_POST["user_name"], "hemsire") == 0) && (strcmp($_POST["user_password"], "1234") == 0)) {
                            header('Location: http://localhost/nhis/indexNurse.php');
                        } elseif ((strcmp($_POST["user_name"], "doctor") == 0) && (strcmp($_POST["user_password"], "1234") == 0)) {
                            header('Location: http://localhost/nhis/indexDoctor.php');
                        } else {
                            echo ' <span class="pull-center">Yanlış Şifre veya Kullanıcı Adı</span>';
                        }
                    }
                    ?>
                    <span class="pull-right"><input type="submit" class="btn btn-success" value="Giriş" /></span>
                </div>
            </form>
            <form id="recoverform" action="#" class="form-vertical">
                <p class="normal_text">Talimatlar için lütfen e-mail adresinizi aşağıya giriniz <br/></p>

                <div class="controls">
                    <div class="main_input_box">
                        <span class="add-on"><i class="icon-envelope"></i></span><input type="text" placeholder="E-mail adres" />
                    </div>
                </div>

                <div class="form-actions">
                    <span class="pull-left"><a href="#" class="flip-link btn btn-warning" id="to-login">&laquo; Giriş e geri dön</a></span>
                    <span class="pull-right"><input type="submit" class="btn btn-info" value="Kurtar" /></span>
                </div>
            </form>
        </div>

        <script src="js/jquery.min.js"></script>  
        <script src="js/maruti.login.js"></script> 
    </body>

</html>
